<!DOCTYPE html>
<html>
<head>
<title>Insert Produk</title>
<link href="View/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="View/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link  href="View/bootstrap/js/bootstrap.min.js" rel="stylesheet"/>
<script type="text/javascript" src="View/bootstrap/js/jquery-latest.js"></script>
</head>
<body>

<?php
$conn =mysql_connect("127.0.0.1","root","");
$db = mysql_select_db("pronsweb",$conn);
$sql = "select ID_USER from user";
$hasil = mysql_query($sql,$conn);
?>

<?php include 'content/content_header_guest.php' ?>

<h3>Insert Product</h3>

    <form class="form-horizontal" method="post" action="simpanprodukbaru.php">
                <div class="control-group">
                        <label class="control-label" for="inputEmail">ID USER</label>
                                <div class="controls">
                                        <!--<input type="text" id="inputUsername" placeholder="ID USER" name="ID_USER">-->
                                        <select id="inputUsername" name="ID_USER">
                                        <?php
                                                while($row = mysql_fetch_row($hasil)){
                                                        ?>
                                                        <option value='<?php echo $row[0]; ?>'><?php echo $row[0]; ?></option>
                                                        <?php
                                                }
                                        ?>
                                        </select>
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">ID PRODUK KATEGORI</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="ID PRODUK KATEGORI" name="ID_PRODUK_KATEGORI">
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">NAMA PRODUK</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="NAMA PRODUK" name="NAMAPRODUK">
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">DESKRIPSI PRODUK</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="DESKRIPSI PRODUK" name="DESKRIPSIPRODUK">
                                </div>
		</div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">JUMLAH ITEM</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="JUMLAH ITEM" name="KUANTITASPERUNIT">
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">HARGA PER UNIT</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="HARGA PER UNIT" name="HARGAPERUNIT">
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">DISKON</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="DISKON" name="DISKON">
                                </div>
        </div>
                <div class="control-group">
                        <label class="control-label" for="inputEmail">GAMBAR PRODUK</label>
                                <div class="controls">
                                        <input type="text" id="inputUsername" placeholder="GAMBAR PRODUK" name="GAMBARPRODUK">
                                </div>
        </div>
                                <div class="control-group">
                        <div class="controls">
                                        <a href="list_produk.php" class="btn btn-primary ">Batal</a>
                                        <button type="submit" class="btn btn-primary">Add Product</button>
                        </div>
                        </div>
    </form>
                </body>
                        <script src="js/bootstrap.js">  
                                </html>

